<?php 

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Education
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array(
  // Package -------------------------------------------------------------------
  'package' => array(
    'type' => 'module',
    'name' => 'education',
    'version' => '4.1.5',
    'path' => 'application/modules/Education',
    'repository' => 'radcodes.com',

    'title' => 'Education / School History',
    'description' => 'This plugin allows your user to add their educations or school history to their profile, similar to Facebook. This is a great way to get your user to participate more at the same time collecting more data from your user. Facebook has proven that having education section on profile works, why not use it to your advantage?!',
    'author' => 'Radcodes Developments',  

    'actions' => array(
       'install',
       'upgrade',
       'refresh',
       'enable',
       'disable',
     ),
    'callback' => array(
      'path' => 'application/modules/Education/settings/install.php',
      'class' => 'Education_Installer',
    ),
    'dependencies' => array(
      'radcodes' => array(
        'type' => 'module',
        'name' => 'radcodes',
        'minVersion' => '4.0.5'
      )
    ),
    'directories' => array(
      'application/modules/Education',
    ),
    'files' => array(
      'application/languages/en/education.csv',
    ),
  ),
  // Hooks ---------------------------------------------------------------------
  'hooks' => array(
    array(
      'event' => 'onStatistics',
      'resource' => 'Education_Plugin_Core'
    ),
    array(
      'event' => 'onUserDeleteBefore',
      'resource' => 'Education_Plugin_Core',
    ),
  ),
  // Items ---------------------------------------------------------------------
  'items' => array(
    'education',
    'education_category'
  ),
  // Routes --------------------------------------------------------------------
  'routes' => array(
    'education_extended' => array(
      'route' => 'educations/:controller/:action/*',
      'defaults' => array(
        'module' => 'education',
        'controller' => 'index',
        'action' => 'index',
      ),
      'reqs' => array(
        'controller' => '\D+',
        'action' => '\D+',
      )
    ),
    'education_general' => array(
      'route' => 'educations/:action/*',
      'defaults' => array(
        'module' => 'education',
        'controller' => 'index',
        'action' => 'index',
      ),
      'reqs' => array(
        'action' => '(index|browse|create|manage|tags)',
      )
    ),
    'education_specific' => array(
      'route' => 'educations/:action/:education_id/*',
      'defaults' => array(
        'module' => 'education',
        'controller' => 'index',
      ),
      'reqs' => array(
        'action' => '(edit|delete)',
        'education_id' => '\d+',
      )
    ),
    'education_profile' => array(
      'route' => 'education/:education_id/:slug/*',
      'defaults' => array(
        'module' => 'education',
        'controller' => 'profile',
        'action' => 'index',
        'slug' => ''
      ),
      'reqs' => array(
        'education_id' => '\d+',
      )
    ),
    'education_user' => array(
      'route' => 'educations/list/:user_id/*',
      'defaults' => array(
        'module' => 'education',
        'controller' => 'index',
        'action' => 'list',
      ),
      'reqs' => array(
        'user_id' => '\d+',
      )
    ),    
  ),
);
